package com.core.zyyz.amc.modules.controller;

import java.util.List;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.core.common.core.controller.BaseController;
import com.core.zyyz.amc.modules.domain.AmcSysZoneIntcodeB;
import com.core.zyyz.amc.modules.service.AmcSysZoneIntcodeBService;
import com.core.common.core.page.TableDataInfo;

/**
 * 地区国标码（省、市、区/县城）Controller
 *
 * @author lfs
 * @date 2024-12-05
 */
@RestController
@RequestMapping("/amc/zone")
public class AmcSysZoneIntcodeBController extends BaseController
{
    @Autowired
    private AmcSysZoneIntcodeBService amcSysZoneIntcodeBService;

    /**
     * 查询地区国标码（省、市、区/县城）列表
     */
    @PreAuthorize("@ss.hasPermi('amc:zone:list')")
    @GetMapping("/list")
    public TableDataInfo list(AmcSysZoneIntcodeB amcSysZoneIntcodeB) {
        startPage();
        List<AmcSysZoneIntcodeB> list = amcSysZoneIntcodeBService.selectAmcSysZoneIntcodeBList(amcSysZoneIntcodeB);
        return getDataTable(list);
    }

}
